package com.bytedance.improvingroad.activity

import com.bytedance.improvingroad.databinding.ActivityDrawerBinding

class DrawerActivity : BaseBindingActivity<ActivityDrawerBinding>() {
    override fun initData() {

    }

    override fun initListener() {
        binding.topAppBar.setNavigationOnClickListener {
            binding.drawerLayout.open()
        }
        binding.navView.setNavigationItemSelectedListener { menuItem ->
            menuItem.isChecked = true
            binding.drawerLayout.close()
            true
        }
    }
}